<?php 
  defined('_JEXEC') or die( 'Restricted Access' ); 
  jimport('joomla.application.component.view'); 
  class EinsaetzeViewEinsaetze extends JView { 
     
     function display($tpl = null) { 
        $model =& $this->getModel(); 
     
     
        $years = $model->getDistinctYears(); 
        $this->assignRef( 'years', $years ); 
       
        $einsaetze = $model->getEinsaetze('2010'); 
        $this->assignRef( 'einsaetze', $einsaetze );
     
     
        parent::display($tpl); 
    } 
 } 
 ?>